<?php
/**
 * @author: Hua Phuoc Truong
 * @created: 10:27 AM 10/4/13
 * @copyright: 2013
 * @version: 1.0
 */

include_once('ZMessageItem.php');

class ZPulseItem extends ZMessageItem {
    /**
     * @var int
     */
    private $totalLikes;
    /**
     * @var int
     */
    private $totalShares;
    /**
     * @var int
     */
    private $totalPosts;

    public function __construct($threadTitle, $lead, $text, $source, $url, $author, $postTitle, $time, $leadAuthor, $authorUrl, $leadAuthorUrl, $likes, $shares, $type, $threadId, $id, $totalPosts, $totalLikes, $totalShares) {
        parent::__construct($threadTitle, $lead, $text, $source, $url, $author, $postTitle, $time, $leadAuthor, $authorUrl, $leadAuthorUrl, $likes, $shares, $type, $threadId, $id);

        $this->totalPosts   = $totalPosts;
        $this->totalLikes   = $totalLikes;
        $this->totalShares  = $totalShares;
    }

    /**
     * Get total posts of this thread
     * @return int
     */
    public function getTotalPosts() {
        return $this->totalPosts;
    }

    /**
     * Get total likes of this thread
     * @return int
     */
    public function getTotalLikes() {
        return $this->totalLikes;
    }

    /**
     * Get total shares of this thread
     * @return int
     */
    public function getTotalShares() {
        return $this->totalShares;
    }
}